package com.hitqz.robot.biz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hitqz.robot.api.business.entity.CvdQuestionAnswerEntity;
import com.hitqz.robot.api.business.dto.CvdQuestionAnswerQueryDTO;
import com.hitqz.robot.api.business.dto.CvdQuestionAnswerSaveDTO;
import com.hitqz.robot.api.business.dto.CvdQuestionAnswerUpdateDTO;
import com.hitqz.robot.api.business.vo.CvdQuestionAnswerExcelVO;
import com.hitqz.robot.api.business.vo.CvdQuestionAnswerVO;
import com.hitqz.robot.common.core.util.R;
import org.springframework.validation.BindingResult;

import java.util.List;

public interface CvdQuestionAnswerService extends IService<CvdQuestionAnswerEntity> {

	Page<CvdQuestionAnswerVO> getCvdQuestionAnswerPage(Page page, CvdQuestionAnswerQueryDTO dto);
	
	CvdQuestionAnswerVO getCvdQuestionAnswerById(Long id);
	
	Boolean saveCvdQuestionAnswer(CvdQuestionAnswerSaveDTO dto);
	
	Boolean updateCvdQuestionAnswerById(CvdQuestionAnswerUpdateDTO dto);
	
	Boolean removeCvdQuestionAnswerBatchByIds(List<Long> ids);

	R importData(boolean cover,List<CvdQuestionAnswerExcelVO> excelVOList, BindingResult bindingResult);
}